Skip to content

Comments

update alter_table for 18.1#3604

Merged
KenichiroTanaka merged 2 commits intopgsql-jp:doc_ja_18_1from
koizumistr:alter_table_18.1
Feb 21, 2026
Merged

update alter_table for 18.1#3604
KenichiroTanaka merged 2 commits intopgsql-jp:doc_ja_18_1from
koizumistr:alter_table_18.1

Conversation

@koizumistr
Copy link
Contributor

ref/alter_table.sgml の 18.1 対応です。

@koizumistr koizumistr added the version 18.1 18.1を対象(doc_ja_18_1)へのpull request label Feb 16, 2026
@noborus noborus requested a review from Copilot February 16, 2026 15:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

ALTER TABLE リファレンス(日本語訳)を PostgreSQL 18.1 の原文に合わせて更新し、特に per-attribute オプション(n_distinct / n_distinct_inherited)説明の内容差分を解消する PR です。

Changes:

  • per-attribute オプション説明を 18.1 の英文コメントに追従(パーティションテーブル統計への言及、負値/小数指定の説明など)
  • 既存テキスト中の機械翻訳由来の不正な混入行を削除

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<literal>n_distinct</literal>はテーブル自身の統計情報に影響を与え、<literal>n_distinct_inherited</literal>はテーブルとそれを継承した子テーブルから集めた統計情報、およびパーティションテーブルから集めた統計情報に影響を与えます。
指定された値が正の値の場合、問い合わせプランナは、その列は、指定された個数の非NULLの個別値を正確に含むものとみなします。
0未満、-1以上の値を使って、小数を指定することもできます。
これは、指定された数の絶対値にテーブルの推定行数を乗算して個別値の数を推定するよう問い合わせプランナに指示します。
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「…推定するよう問い合わせプランナに指示します」は助詞が抜けているため文意が取りづらいです。「…推定するように問い合わせプランナに指示します」など、「ように」を入れる形に直してください。

Suggested change
これは、指定された数の絶対値にテーブルの推定行数を乗算して個別値の数を推定するよう問い合わせプランナに指示します
これは、指定された数の絶対値にテーブルの推定行数を乗算して個別値の数を推定するように問い合わせプランナに指示します

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@KenichiroTanaka KenichiroTanaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

対応ありがとうございます。
一通り確認しましたのでマージします。
適用した方が良さそうなCpilotの指摘は適用しています(1箇所)

@KenichiroTanaka KenichiroTanaka merged commit 6a36204 into pgsql-jp:doc_ja_18_1 Feb 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version 18.1 18.1を対象(doc_ja_18_1)へのpull request 再レビュー待ち

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants